package com.laf.common.enums;

import lombok.Getter;

@Getter
public enum PushTypeEnum {
    // 在线推送
    MESSAGE_PUSH("1" , "在线推送"),
    // 离线推送
    OFFLINE_PUSH("2" , "离线推送");

    private final String type;
    private final String desc;

    PushTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getType(String type) {
        for (PushTypeEnum pushTypeEnum : PushTypeEnum.values()) {
            if (pushTypeEnum.getType().equals(type)) {
                return pushTypeEnum.getType();
            }
        }
        return null;
    }




}
